<ul class="nav nav-tabs">
	<li ng-class="{'active':pagedata.op=='list'}"><a href="javascript:;" ng-click="access('list')">公共模版库</a></li>
	<li ng-class="{'active':pagedata.op=='my'}"><a href="javascript:;" ng-click="access('my')">我的模版</a></li>
	<li ng-class="{'active':pagedata.op=='add'}"><a href="javascript:;" ng-click="access('add')">直接添加</a></li>
</ul>
<div class="keyword-list-head">
	<div class="keyword-list-head clearfix">
		<div class="input-group jinyun-margin-bottom" style="width:465px;">
			<input class="form-control" type="text" ng-model="pagedata.params.title" value="" placeholder="输入模板名称" style="width: 427px;">
			<span class="input-group-btn"><button id="submit" ng-click="pagedata.params.page=1;access(pagedata.op,made_query(pagedata.params))" class="btn btn-info"><i class="fa fa-search"></i> 搜索</button></span>
		</div>
	</div>
</div>
<div class="clearfix table-responsive">
<div class="form-group">
	<div class="btn-group site-tp-group">
		<a href="" ng-repeat="group in pagedata.groups" ng-class="{'btn': 1,'active': pagedata.params.type == group.id}" ng-click="pagedata.params.page=1;pagedata.params.type=group.id;access(pagedata.op,made_query(pagedata.params))">{{group.title}}</a>
	</div>
</div>
<div class="site-tp-list">
	<div class="site-col tj_item" ng-repeat="item in pagedata.list">
		<div class="site-tp-li-msg">
          <div class="site-tp-li-content">
            <div class="site-tp-li-info">
              <em class="site-tp-li-date">{{item.title}}</em>
			</div>
            <div class="site-tp-li-item">
				<div class="cover-lock" ng-if="item.buy">
					<div class="lock">
						<a href="" class="btn btn-warning item-build-btn" ng-click="access('buy','type=3&id='+item.id,'account.store')" title="购买">点击购买</a>
					</div>
				</div>
				<div class="site-tp-li-thumb" ng-click="post({},'add','id='+item.id)" style="background-image:url('{{tomedia(item.image)}}')">
					<div class="cover-dark">
						<div class="selected">
							<i class="fa fa-check"></i>
						</div>
					</div>
				</div>
            </div>
          </div>
          <div class="appmsg_opr"  ng-click="post({},'add','id='+item.id)">
            <ul>
              <li class="appmsg_opr_item size-1of1">
                <a class="js_free" target="_blank" href="" title="使用">使用</a>
              </li>
              <!--<li class="appmsg_opr_item size-1of2">
                <a class="js_del" href="javascript:void(0);" title="删除">&nbsp;
                  <i class="fa fa-trash-o ico-add"></i></a>
              </li>-->
            </ul>
          </div>
		  <div class="appmsg_opr" ng-if="pagedata.op=='my'" ng-click="post({},'del','id='+item.id)">
            <ul>
              <li class="appmsg_opr_item size-1of1">
                <a class="js_free" target="_blank" href="" title="删除">删除</a>
              </li>
              <!--<li class="appmsg_opr_item size-1of2">
                <a class="js_del" href="javascript:void(0);" title="删除">&nbsp;
                  <i class="fa fa-trash-o ico-add"></i></a>
              </li>-->
            </ul>
          </div>
		</div>
	</div>
</div>
	<!-- 分页导航 -->
	<div ng-include="sys_html('common/page',true)"></div>
</div>
